package com.ying.service.order;

import com.ying.core.page.PageData;
import com.ying.core.page.PageWrap;
import com.ying.po.order.Express;
import com.ying.po.order.Orange;
import com.ying.po.order.Order;

import java.util.List;
import java.util.Map;

public interface ExpressService {

    Integer create(Express express);

    void deleteById(Integer id);

    void deleteByIdInBatch(List<Integer> ids);

    void updateById(Express express);

    void updateByIdInBatch(List<Express> expresses);

    Express findById(Integer id);

    public List<Express> findByIdInBatch(List<Integer> ids);

    PageData<Express> findAllByPage(PageWrap pageWrap);

    long countAll(Integer userId);

    List<Express> findAll(Integer userId);

    PageData<Express> queryAllByPage(PageWrap<Express> pageWrap);

    void syncSystemData(Integer userId);

    List<Express> restoreToSys(Integer userId);

    List<Express> queryAllByCondition(Express express);

    List<Map> getAllExpressName(Integer userId);

    List<Integer> findIdsByName(Integer e, Integer u);

    Integer findByNameWeightTargetOrigin(String expressName, Float weight, String origin, String target, Integer userId);
}
